package person.learn.event;

import org.springframework.context.ApplicationEvent;

/**
 * Created by barton on 16-1-26.
 * 1. spring 事件机制的 事件。用applicationContext.pushEvent(new ContentEvent("source"))
 * 进行发布，必须通过用applicationContext进行发布
 * 2. 然后spring 事件机制的监听器 (ContextListener) 的onApplicationEvent()方法就会执行。
 */
public class ContentEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public ContentEvent(Object source) {
        super(source);
    }

}
